#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>
#include "document.h"

class MainWindow : public QMainWindow
{
  Q_OBJECT
public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow();
signals:

public slots:
  void askAndLoad();
  void showDocument();
private:
  QTextEdit *m_origText, *m_noteText;
  QToolBar *m_toolbar;
  QAction *m_loadAct;
  QString fileName;

  Document *m_orig, *m_note;

  void createLayout();
  void createAction();
  void connectSignal();
};

#endif // MAINWINDOW_H
